package com.doublechaintech.retailscm.memberwishlistproduct;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Stream;
import java.util.Map;
import com.terapico.caf.baseelement.CandidateQuery;
import com.doublechaintech.retailscm.BaseDAO;
import com.doublechaintech.retailscm.BaseEntity;
import com.doublechaintech.retailscm.SmartList;
import com.doublechaintech.retailscm.MultipleAccessKey;
import com.doublechaintech.retailscm.RetailscmUserContext;

import com.doublechaintech.retailscm.memberwishlist.MemberWishlist;

import com.doublechaintech.retailscm.memberwishlist.MemberWishlistDAO;

public interface MemberWishlistProductDAO extends BaseDAO {

  public SmartList<MemberWishlistProduct> loadAll();

  public Stream<MemberWishlistProduct> loadAllAsStream();

  public MemberWishlistProduct load(String id, Map<String, Object> options) throws Exception;

  public void enhanceList(List<MemberWishlistProduct> memberWishlistProductList);

  public void collectAndEnhance(BaseEntity ownerEntity);

  public void alias(List<BaseEntity> entityList);

  public MemberWishlistProduct present(
      MemberWishlistProduct memberWishlistProduct, Map<String, Object> options) throws Exception;

  public MemberWishlistProduct clone(String id, Map<String, Object> options) throws Exception;

  public MemberWishlistProduct save(
      MemberWishlistProduct memberWishlistProduct, Map<String, Object> options);

  public SmartList<MemberWishlistProduct> saveMemberWishlistProductList(
      SmartList<MemberWishlistProduct> memberWishlistProductList, Map<String, Object> options);

  public SmartList<MemberWishlistProduct> removeMemberWishlistProductList(
      SmartList<MemberWishlistProduct> memberWishlistProductList, Map<String, Object> options);

  public SmartList<MemberWishlistProduct> findMemberWishlistProductWithKey(
      MultipleAccessKey key, Map<String, Object> options);

  public int countMemberWishlistProductWithKey(MultipleAccessKey key, Map<String, Object> options);

  public Map<String, Integer> countMemberWishlistProductWithGroupKey(
      String groupKey, MultipleAccessKey filterKey, Map<String, Object> options);

  public MemberWishlistProduct disconnectFromAll(String memberWishlistProductId, int version)
      throws Exception;

  public void resetNextId();

  public SmartList<MemberWishlistProduct> queryList(String sql, Object... parameters);

  public List<String> queryIdList(String sql, Object... parameters);

  public Stream<MemberWishlistProduct> queryStream(String sql, Object... parameters);

  public int count(String sql, Object... parameters);

  public CandidateMemberWishlistProduct executeCandidatesQuery(
      CandidateQuery query, String sql, Object... parmeters) throws Exception;

  public SmartList<MemberWishlistProduct> findMemberWishlistProductByOwner(
      String memberWishlistId, Map<String, Object> options);

  public int countMemberWishlistProductByOwner(
      String memberWishlistId, Map<String, Object> options);

  public Map<String, Integer> countMemberWishlistProductByOwnerIds(
      String[] ids, Map<String, Object> options);

  public SmartList<MemberWishlistProduct> findMemberWishlistProductByOwner(
      String memberWishlistId, int start, int count, Map<String, Object> options);

  public void analyzeMemberWishlistProductByOwner(
      SmartList<MemberWishlistProduct> resultList,
      String memberWishlistId,
      Map<String, Object> options);

  List<MemberWishlistProduct> search(MemberWishlistProductRequest pRequest);
}
